package com.hanson.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hanson.entity.OrderBean;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 订单合并
 */
@Data
public class OrderMergeBean {
    private String orderSeq;
    private Integer orderType;
    private Integer status;
    private String statusName;
    private Integer totalNum;
    private String webTotalPrice;
    private Integer payType;
    private Integer useScore;
    private String webPayPrice;
    private String userName;
    private String userPhone;
    private String userAddress;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date changeDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shouldPayDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    private Integer groupNum = 0;
    private List<OrderBean> cartInfo = new ArrayList<>();
}
